<br>
<br>
<br>
<div class="row">
    <div class="col-xs-12 col-md-12">
        <div class="grid simple">
            <div class="grid-body no-border">
                <form action="<?= DOMAIN."category/edit/{$category['category_id']}" ?>" method="POST"> 
                    <div class="row">
                        <div class="row form-row">
                            <div class="col-xs-4 col-md-4">
                                <label class="form-label">分类名 *</label>
                                <input type="text" value="<?= $category['name'] ?>" name="name" class="form-control" placeholder="最少1个字最多20个字">
                            </div> 
                        </div>
                        <div class="row form-row">
                            <div class="col-xs-4 col-md-4">
                                <label class="form-label">分类 SEO 名（用于前台显示） *</label>
                                <input type="text" value="<?= $category['seo_name'] ?>" name="seo_name" class="form-control" placeholder="必须为英文或数字，最多20个字">
                            </div> 
                        </div>
                        <div class="row form-row">
                            <div class="col-xs-4 col-md-4">
                                <label class="form-label">属性模版</label>
                                <select name="attr_group_id" class="select2 form-control">
                                    <? foreach($attr_group as $ag): ?>
                                        <option value="<?= $ag['attr_group_id'] ?>" <?= ($category['attr_group_id'] == $ag['attr_group_id'] ) ? 'selected="selected"' : "" ?>>
                                            <?= $ag['name'] ?>
                                        </option>
                                    <? endforeach ?>
                                </select>
                            </div> 
                        </div>
                    </div>
                      
                    <div class="form-actions">  
                        <div class="pull-left">
                            <button class="btn btn-success btn-cons" type="submit">
                                <i class="icon-save"></i>&nbsp;保存</button>
                            </button>
                            <button class="btn btn-white btn-cons" type="button" onclick="$.T.reset_form(this)">
                                重置
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    
</script>